package com.yanqu.road.logic.model.kowloon.sanxiao;

import com.yanqu.road.entity.kowloon.sanxiao.KowloonBlock;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class KowloonEliminateTip {

    private KowloonBlock from;
    private KowloonBlock to;
    private Set<KowloonBlock> eliminateSet = new HashSet<>();

    public KowloonEliminateTip() {
    }

    public KowloonEliminateTip(KowloonBlock from) {
        this.from = from;
    }

    public KowloonEliminateTip(KowloonBlock from, KowloonBlock to) {
        this.from = from;
        this.to = to;
    }

    public KowloonEliminateTip(KowloonBlock from, KowloonBlock to, Set<KowloonBlock> eliminateSet) {
        this.from = from;
        this.to = to;
        this.eliminateSet = eliminateSet;
    }

    public KowloonBlock getFrom() {
        return from;
    }

    public void setFrom(KowloonBlock from) {
        this.from = from;
    }

    public KowloonBlock getTo() {
        return to;
    }

    public void setTo(KowloonBlock to) {
        this.to = to;
    }

    public Set<KowloonBlock> getEliminateSet() {
        return eliminateSet;
    }

    public void setEliminateSet(Set<KowloonBlock> eliminateSet) {
        this.eliminateSet = eliminateSet;
    }

    public List<KowloonBlock> getAllBlockList() {
        List<KowloonBlock> list = new ArrayList<>();
        list.add(from);
        list.add(to);
        list.addAll(eliminateSet);
        return list;
    }
}
